package com.erp.order.supply.service.impl;

import com.erp.hr.base.service.impl.BaseServiceImpl;
import com.erp.hr.base.vo.LegalityResultVO;
import com.erp.order.purchasing.model.PurchaseOrder;
import com.erp.order.supply.dao.SupplyMaterialDao;
import com.erp.order.supply.model.SupplyMaterial;
import com.erp.order.supply.model.SupplyMaterialVO;
import com.erp.order.supply.service.SupplyMaterialService;
import org.redragon.framework.hibernate.model.Pages;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplyMaterialServiceImpl extends BaseServiceImpl<SupplyMaterialDao, SupplyMaterial>
        implements SupplyMaterialService {
    @Autowired
    private SupplyMaterialDao supplyMaterialDao;



    @Override
    public List<SupplyMaterial> addCompleteData(List<SupplyMaterial> list) {
        return null;
    }

    @Override
    public LegalityResultVO isLegalityData(SupplyMaterial supplyMaterial) {
        return null;
    }

    @Override
    public boolean save(SupplyMaterial supplyMaterial) {
        return false;
    }

    @Override
    public boolean update(SupplyMaterial supplyMaterial) {
        return false;
    }

    @Override
    public boolean linkDelete(Long id) {
        return false;
    }

    @Override
    public List<PurchaseOrder> getSupplyLists(Pages pages, PurchaseOrder purchaseOrder, String username) {
        return dao.getSupplyLists(pages,purchaseOrder,username);
    }

    @Override
    public SupplyMaterial addCompleteData(SupplyMaterial supplyMaterial) {
        return  this.supplyMaterialDao.addCompleteData(supplyMaterial);
    }



    @Override
    public List<SupplyMaterialVO> getSupplyAndSupplyRList(Pages pages, SupplyMaterialVO supplyMaterialVO){
        return dao.getSupplyAndSupplyRList(pages,supplyMaterialVO);
    }
}
